package mysql

import (
	"gorm.io/gorm"
)

type User struct {
	gorm.Model
	Account  string `gorm:"type:varchar(20);not null;comment:账号"`
	Password string `gorm:"type:varchar(32);not null;comment:密码"`
}
type Novel struct {
	gorm.Model
	Title   string `gorm:"type:varchar(30);comment:小说标题"`
	Author  string `gorm:"type:varchar(20);comment:小说作者"`
	Content string `gorm:"type:varchar(100);comment:小说内容"`
	Image   string `gorm:"type:varchar(200);comment:小说图片"`
	UserId  int    `gorm:"type:int(11);comment:用户id"`
}
